import request from '../utils/request'

export function list(params) {
  return request({
    url: '/phoneProduct/list',
    method: 'post',
    params:params
  })
}

export function create(data) {
  return request({
    url: '/member/phoneOrder/create',
    method: 'post',
    data:data
  })
}

export function payment(id) {
  return request({
    url: '/member/phoneOrder/payment/' + id,
    method: 'post'
  })
}


export function submit(params) {
  return request({
    url: '/member/phonePayment/submit',
    method: 'post',
    params:params
  })
}

export function query(params) {
  return request({
    url: '/phonePayment/query',
    method: 'get',
    params:params
  })
}


export function find(id) {
  return request({
    url: '/member/phoneOrder/find/' + id,
    method: 'get'
  })
}

export function phoneOrderList(params) {
  return request({
    url: '/member/phoneOrder/list',
    method: 'get',
    params:params
  })
}